package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Leave;

public interface LeaveService {

	public Leave getInfo(String id);

	public void updateInfo(Leave leave);

	public Serializable save(Leave leave);

	public void delete(Leave leave);

	public List<Leave> getAll();

	public Leave getModelById(Serializable id);

	public List<Leave> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Leave leave);

	public void saveOrUpdateAll(Collection<Leave> collection);

	public void update(Leave leave);

	public List<Leave> getByCriteria(DetachedCriteria dc);

}
